package eshop.local.valueobjects;

import java.io.Serializable;


public class User implements Serializable {
	int nummer;
	String name;
	String pass;
	String strasse;
	String ort;
	String email;
	
	
	public User(int nu, String na, String pw, String s, String o, String e) {
		nummer = nu;
		name = na;
		pass = pw;
		strasse = s;
		ort = o;
		email = e;
	}
	
	/**
	* Setter fuer User-Nummer, -Name 
	*/
	public void setPw(String pw){
		pass = pw;
	}
	public void setNummer(int nu) {
	    nummer = nu;
	}
	public void setName(String na) {
        name = na;
	}
	public void setStrasse(String s) {
		strasse = s;
	}
	public void setOrt(String o) {
		ort = o;
	}
	public void setEmail(String e) {
		email = e;
	}
	
	/**
	 * Getter fuer User-Nummer, -Name & User-Level (Administrator, Mitarbeiter & Kunde)
	 */
	public String getPw(){
		return pass;
	}
	public int getNummer() {
       	return nummer;
	}
	public String getName() {
		return name;
	}

	public String getStrasse() {
		return strasse;
	}
	public String getOrt() {
		return ort;
	}
	public String getEmail() {
		return email;
	}
	
	
	/**
	 * Ueberschriebene toString Methode
	 */
	public String toString(){
		return ("##  "+nummer +"  ##  "+name+ "  ##  " +strasse+ "  ##  " +ort+ "  ## " +email);
	}
	
}